import Login from './pages/Login.vue'
import NavPages from './pages/NavPages.vue'
import { createRouter,createWebHashHistory,createWebHistory} from 'vue-router';
import type { RouteRecordRaw } from 'vue-router';

const routes:RouteRecordRaw[]=[
    // {path:'/',redirect:'/login'},
    {path:'/login',component:Login},
    {path:'/nav',component:NavPages}
]

export const router=createRouter({
    history:createWebHistory(),
    routes
})